import request from '@/utils/request'
/**
 * 获取
 * @param query
 */
export function getPush(query) {
  return request({
    url: '/api/push',
    method: 'GET',
    params: query
  })
}

/**
 * 推送
 * @param query
 */
export function Push(data) {
  return request({
    url: '/api/push',
    method: 'POST',
    data
  })
}

/**
 * 删除推送
 * @param id
 */
export function deletePush(id) {
  return request({
    url: '/api/push/' + id,
    method: 'DELETE',
    params: { }
  })
}
